import request from '@/utils/request'

export function listtcCabwarring(query) {
  return request({
    url: '/material/tcCabwarring/list',
    method: 'get',
    params: query
  })
}

export function createtcCabwarring(data) {
  return request({
    url: '/material/tcCabwarring/create',
    method: 'post',
    data
  })
}

export function readtcCabwarring(data) {
  return request({
    url: '/material/tcCabwarring/get/' + data.id,
    method: 'get'
  })
}

export function updatetcCabwarring(data) {
  return request({
    url: '/material/tcCabwarring/update',
    method: 'post',
    data
  })
}

export function deletetcCabwarring(data) {
  return request({
    url: '/material/tcCabwarring/delete/' + data.fentryid,
    method: 'delete'
  })
}
